package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Classname Catalog2Vo
 * @Date 2024/7/6 9:25
 * @Created by 369502594
 */

// 2级分类vo
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
    private String catalog1Id; // 1级父分类id
    private List<Catelog3Vo> catalog3List; // 3级子分类
    private String id;
    private String name;

    /**
     * 三级分类vo
     * "catalog2Id":"1"
     *  "id":"1"
     *  "name":"电子书"
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo {
        private String catalog2Id; // 2级父分类id，2级分类id
        private String id;
        private String name;
    }
}
